home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000195_icon-group-sender _Fri Aug 30 21:41:06 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 30 Aug 1996 17:20:58 MST
  2. Date: Fri, 30 Aug 1996 21:41:06 -0500
  3. Message-Id: <199608310241.VAA13620@segfault.cs.utsa.edu>
  4. From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
  5. To: swampler@noao.edu
  6. Cc: icon-group@cs.arizona.edu
  7. In-Reply-To: <199608301545.IAA17632@orpheus.gemini.edu> (swampler@noao.edu)
  8. Subject: Re: Unbuffered reads from Unix pipes?
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11.  
  12. >   I left my Icon book at home today - can someone tell me the
  13. >   character to add to argument 2 of open to read a pipe unbuffered
  14. >   under Unix?  I want to process each line of input from the pipe
  15. >   as it comes in, and now wait for enough lines to fill the input buffer.
  16.  
  17. I am not aware of any such option letter to open().  open(...,"p") calls
  18. C language popen(), which similarly does not have such an option letter.
  19. Someone could always *add* such a capability and post it as a contribution...
  20. I think it would involve calls to fcntl() or ioctl() or some such.
  21.  
  22. Clint Jeffery
  23. jeffery@cs.utsa.edu
  24. Division of Computer Science, The University of Texas at San Antonio
  25. Research http://www.cs.utsa.edu/research/plss.html
  26.